﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { name: '登录', path: '/user/login', component: './user/login' },
      { name: '注册', path: '/user/register', component: './user/register' },
    ],
  },
  { path: '/', redirect: '/home' },
  // { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  { path: '/home', name: '首页', icon: 'smile', component: './dashboard' },
  { path: '/statistic', name: '数据统计', icon: 'BarChartOutlined', component: './statistic' },
  { path: '/signRecord', name: '签到记录', icon: 'BarChartOutlined', component: './signRecord' },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { path: '/admin', redirect: '/admin/user' },
      { name: '用户管理', icon: 'table', path: '/admin/user', component: './admin/user' },
      { name: '公告管理', icon: 'table', path: '/admin/announcement', component: './admin/announcement' },
      { name: '文件管理', icon: 'table', path: '/admin/fileInfo', component: './admin/fileInfo'},
      { name: '签到管理', icon: 'table', path: '/admin/sign', component: './admin/sign'},

    ],
  },
  {
    path: '/account/info',
    name: '个人信息',
    icon: 'user',
    component: './account',
  },
  { path: '*', layout: false, component: './404' },
];
